home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / tweak16b.zip / REGEDIT.HPP < prev    next >
C/C++ Source or Header  |  1993-08-04  |  551b  |  22 lines

  1. #ifndef _REGEDIT_HPP
  2. #define _REGEDIT_HPP
  3.  
  4. #include "RegTable.hpp"
  5.  
  6. class RegisterEditor : public RegisterTable
  7.     {
  8.     int select, prevSel;
  9. public:
  10.     RegisterEditor(istream &);
  11.     int operator++()            { return setSelect(select+1); }
  12.     int operator--()            { return setSelect(select-1); }
  13.     NamedRegister& operator* (void) { return reg[select]; }
  14.     int getSelect()                { return select; }
  15.     void printCon(int);
  16.     void printAllCon();
  17.     int updateSelect();
  18.     int setSelect(int s)        { select = s; return updateSelect(); }
  19.     void showBitMask();
  20.     };
  21.  
  22. #endif